

import 'package:my_flutter/model/LoginInfo.dart';
import 'package:my_flutter/store/LoginData.dart';
import 'package:my_flutter/http/DioEx.dart';
import 'package:my_flutter/http/DioManager.dart';

class ApiGet{

  ///获取用户信息
  static Future loginInfo() async {
    var resp = await DioManager.getInstance().get('lg/coin/userinfo/json', params: null);
    if(resp is RespData) {
      //处理错误
      return  LoginInfo.fromDioError(resp);
    }
    //处理成功
    return LoginInfo.fromJson(resp);
  }

}
